STEP 4: We can put our sprite wherever we want! The stage is a coordinate plane with (0, 0) in the center.

  • Go to the section of the toolkit and drag Go To into your program.
  • Change the first number in the .go_to() command to -175 and change the second number to -150.

You can change the code after you drag it in by typing directly into the editor. The first number moves the sprite -175 pixels to the left. The second number moves the sprite 150 pixels down.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("halfcourt") sprite = codesters.Sprite("player1")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)